#!usr/bin/env python  
#@time: 2018/01/22 
from PIL import Image, ImageFilter

image = Image.open('demo.jpg')

w,h = image.size
print('原始图片尺寸:%s X %s' %(w,h))

# image.thumbnail((w//2,h//2))
# print('处理后的图片尺寸:%s X %s' %(w//2,h//2))
# image.save('thumbnail.jpg','jpeg')

image.filter(ImageFilter.BLUR)
image.save('blur.jpg','jpeg')